# -*- coding: utf-8 -*-
import unittest
import os.path

from kivy.lang import Builder
from model.gamestate import *
from guess_word import GuessWordScreen
from presenter_mock import PresenterMock


class SaveTimerTest(unittest.TestCase):
    def setUp(self):
        player = Player('aaa', [])
        self.Words = [Word(player, 'Семиотика'), Word(player, 'Слово'),
                      Word(player, 'Кастрюлька'), Word(player, 'Шляпа')]
        self.hat = Hat(self.Words)
        self.GameRound = GameRound(10, [], Word(player, 'Abacaba'), None)
        self.Settings = Settings(10, 20)
        self.gamestate = GameState(None, self.hat, self.GameRound, None,
                                   None, None, self.Settings)

    def test_save_timer(self):
        self.presenter = PresenterMock(Phase.RESULTS_OF_ONE_PAIR,
                                       self.gamestate)

        '''
        self.presenter = PresenterMock(Phase.RESULTS_OF_ONE_PAIR,
                                       self.gamestate)
        widget = GuessWordScreen(self.gamestate, self.presenter)
        widget.update(5)
        current_time = widget.pbValue
        '''
        pass

if __name__ == '__main__':
    unittest.main()
